package com.ruoyi.project.order.controller;

import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.order.service.IOrderNoChargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order/charge")
public class OrderNoChargeController  {

    @Autowired
    private IOrderNoChargeService chargeService;

    @GetMapping("/{regId}")
    public AjaxResult selectNoChargeInfoByRegId(@PathVariable String regId){
        return chargeService.selectNoChargeOrderItemAndCareHisTory(regId);
    }
}
